/*
 * @Author: tanjunyi@doctorwork.com
 * @Date: 2020-07-20 22:21:33
 * @LastEditors: tanjunyi@doctorwork.com
 * @LastEditTime: 2020-07-27 18:13:30
 * @Description:
 */
import Vue from 'vue'
// import Vuex from 'vuex'
import Vuex from './vuex/index'
Vue.use(Vuex);
const user = {
	state: {
		name: "caroline"
	},
	mutations: {
		changeName(state, name) {
			state.name = name;
		}
	},
	actions: {
		changeName: ({ commit }) => {
			commit('changeName', 909)
		}
	},
	getters: {
		getName: (state) => {
			return state.name
		}
	}
}
export default new Vuex.Store(user);
